using UnityEngine;
using UnityEngine.UI;

public class CountdownText : MonoBehaviour
{
	private Animator m_Animator;

	[SerializeField]
	private Text m_PhysicalText;

	public Delegate0Args onFinish;

	private void Awake()
	{
		m_Animator = GetComponent<Animator>();
	}

	public void Show(int physical)
	{
		m_PhysicalText.text = physical.ToString();
		m_Animator.SetTrigger("Show");
	}

	public void Finish()
	{
		if (onFinish != null)
		{
			onFinish();
		}
	}
}
